<html>
<head><meta charset="utf-8"><title>weird compilation errors · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html">weird compilation errors</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216918439"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918439" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918439">(Nov 16 2020 at 19:20)</a>:</h4>
<p>Anybody else seeing errors like this?</p>
<div class="codehilite"><pre><span></span><code>error[E0308]: mismatched types
    --&gt; compiler/rustc_middle/src/mir/visit.rs:583:45
     |
68   | / macro_rules! make_mir_visitor {
69   | |     ($visitor_trait_name:ident, $($mutability:ident)?) =&gt; {
70   | |         pub trait $visitor_trait_name&lt;&#39;tcx&gt; {
71   | |             // Override these, and call `self.super_xxx` to revert back to the
...    |
583  | |                                             place,
     | |                                             ^^^^^
     | |                                             |
     | |                                             expected `&amp;mut mir::Place&lt;&#39;tcx&gt;`, found struct `mir::Place`
     | |                                             help: consider mutably borrowing here: `&amp;mut place`
...    |
925  | |     }
926  | | }
     | |_- in this expansion of `make_mir_visitor!`
...
1075 |   make_mir_visitor!(MutVisitor, mut);
     |   ----------------------------------- in this macro invocation
</code></pre></div>



<a name="216918449"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918449" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918449">(Nov 16 2020 at 19:20)</a>:</h4>
<p>this is a fresh build on master?</p>



<a name="216918540"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918540" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918540">(Nov 16 2020 at 19:21)</a>:</h4>
<p>perhaps related</p>



<a name="216918544"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918544" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918544">(Nov 16 2020 at 19:21)</a>:</h4>
<div class="codehilite"><pre><span></span><code>   Compiling rustc_middle v0.0.0 (/home/nmatsakis/versioned/rust-3/compiler/rustc_middle)
error[E0761]: file for module `coverage` found at both coverage.rs and coverage/mod.rs
  --&gt; compiler/rustc_middle/src/mir/mod.rs:42:1
   |
42 | pub mod coverage;
   | ^^^^^^^^^^^^^^^^^
   |
   = help: delete or rename one of them to remove the ambiguity

error[E0761]: file for module `terminator` found at both terminator.rs and terminator/mod.rs
  --&gt; compiler/rustc_middle/src/mir/mod.rs:48:1
   |
48 | pub mod terminator;
   | ^^^^^^^^^^^^^^^^^^^
   |
   = help: delete or rename one of them to remove the ambiguity
</code></pre></div>



<a name="216918629"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918629" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918629">(Nov 16 2020 at 19:22)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span> you might need a git clean perhaps?</p>



<a name="216918656"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918656" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918656">(Nov 16 2020 at 19:22)</a>:</h4>
<p>i.e., we moved the file but git didn't notice</p>



<a name="216918666"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918666" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918666">(Nov 16 2020 at 19:22)</a>:</h4>
<p>or at least left the old file</p>



<a name="216918677"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918677" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918677">(Nov 16 2020 at 19:22)</a>:</h4>
<p>hmm</p>



<a name="216918734"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918734" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918734">(Nov 16 2020 at 19:22)</a>:</h4>
<p>doesn't seem to be</p>



<a name="216918752"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918752" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918752">(Nov 16 2020 at 19:23)</a>:</h4>
<p>(though the coverage/mod.rs -&gt; <a href="http://coverage.rs">coverage.rs</a> happened on Oct 18)</p>



<a name="216918790"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918790" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918790">(Nov 16 2020 at 19:23)</a>:</h4>
<p>well maybe yes</p>



<a name="216918792"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918792" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918792">(Nov 16 2020 at 19:23)</a>:</h4>
<p><code>git clean -fd</code></p>



<a name="216918806"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918806" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918806">(Nov 16 2020 at 19:23)</a>:</h4>
<p>not just <code>git clean -f</code>..</p>



<a name="216918814"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/weird%20compilation%20errors/near/216918814" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/weird.20compilation.20errors.html#216918814">(Nov 16 2020 at 19:23)</a>:</h4>
<p>thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>